package com.woniuxy.bookmall.mapper;

import com.woniuxy.bookmall.entity.TAddress;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface TAddressMapper extends Mapper<TAddress> {

    @Select("select * from t_address where userId = #{id} and status=1")
    List<TAddress> selectAddressByUser(Long id);
}